import React, {Component} from 'react';
import { Badge,Card,NoticeBar, Button,Scroller,Popup,Group, Field, Toast,NumberPicker, Context,SelectField, Dialog,Table,Layer   } from 'saltui';
import Icon from 'salt-icon';


export default class EditIcon extends React.Component {

  constructor(props) {
    super(props);
    this.state ={};
    this.state.id = this.props.id;
  }


  button =() =>{
    return   this.props.typeObj
  }

  render(){
    let Add =this.button() ;
    return <Icon className="H-Table-Edit" name="pen" width="20" height="20" onClick={() => {
      Popup.show(Add, {
        animationType: 'slide-down',
      });
    }}  />
  }

}
